package cn.edu.swu.toy;

import java.util.Date;

public class Toy {
    private int id = -1;
    private String name;
    private String Brand;
    private double price;
    private String memo;
    private Date produce;
    private String image;

    public Toy(){}

    public Toy(int id, String name, String Brand, double price, String memo, Date produce, String image) {
        this.setId(id);
        this.setName(name);
        this.setBrand(Brand);
        this.setPrice(price);
        this.setMemo(memo);
        this.setProduce(produce);
        this.setImage(image);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return Brand;
    }

    public void setBrand(String brand) {
        this.Brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Date getProduce() {
        return produce;
    }

    public void setProduce(Date produce) {
        this.produce = produce;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage(){
        return this.image;
    }

    public String toString() {
        return String.format("%s, %s, %s, %s, %s, %s, %s",
                this.getId(), this.getName(), this.getBrand(),
                this.getPrice(), this.getMemo(),
                this.getProduce(), this.getImage());
    }
}
